#父类
class A(object):
  def __init__(self):
    self.num=1
  def infoPrint(self):
    print(self.num)
  
class B(A):
  pass


res=B()
res.infoPrint()